'''
Created on Dec 2, 2011

@author: anorberg
'''

import tsv

ASSOC_12_2_2011 = ["Target", "Predictor", "log10(P)", "Importance", "Pearson"]
PREDICT_12_2_2011 = ["Target", "DUMMY", "Observed", "Predicted", "Confidence"]

def loadRfAceResultFile(fileReference):
    inFile = fileReference
    if isinstance(fileReference, str):
        inFile = open(fileReference, "r")
    return tsv.TsvReader(inFile, ASSOC_12_2_2011, ASSOC_12_2_2011)